package com.dbexplore.server;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.xml.XmlConfiguration;

import java.io.File;

public class StartJetty {

    public static void main(String[] args) throws Exception {
        Server server = new Server(8080);
        String[] configFiles = {"server/config/jetty.xml"};
        for(String configFile : configFiles) {
           XmlConfiguration configuration = new XmlConfiguration(new File(configFile).toURI().toURL()); 
           configuration.configure(server);
        }

        server.start();
    }
}

